package com.hdax.easybuy.api;


import com.hdax.easybuy.entity.User;
import com.hdax.easybuy.entity.Users;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RequestMapping(value = "/providerUser")
@FeignClient(value = "easybuy-database-provider")
public interface UserServiceClient {
    @RequestMapping("/queryAll")
    public List<User> queryAll();
    @RequestMapping("/getUserByuNameAndPwd/{userName}/{password}")
    public User getUserByuNameAndPwd(@PathVariable("userName") String userName,
                                     @PathVariable("password") String password);
}
